home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / NGService / MMCell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-10  |  1.2 KB  |  51 lines

  1. /*
  2.  *      You may freely copy, distribute and reuse the code
  3.  *      in this example.  Scott Anguish disclaims any warranty of
  4.  *      any kind, expressed or implied, as to its fitness
  5.  *      for any particular use.
  6.  *        Please keep this notice intact
  7.  *      Written by: Scott Anguish  sanguish@digifix.com
  8.  */
  9.  
  10. #import <objc/Object.h>
  11. #import <appkit/appkit.h>
  12. #import <libc.h>                      /* MAXPATHLEN */
  13. #import <objc/List.h>
  14.  
  15. @interface MMCell:Cell
  16. {
  17.     id MMView;
  18.     char attachmentName[MAXPATHLEN+1];
  19.     char attachmentPath[MAXPATHLEN+1];
  20.     int attachmentSize;
  21.     char *attachmentData;
  22.     id    theImage;
  23.     BOOL uuencoded;
  24. }
  25.  
  26.  
  27. - free;
  28. - initFromFilename:(const char *)filename;
  29. - imageFromAttachment;
  30. - imageFromFilename:(const char *)filename;
  31.  
  32. - calcCellSize:(NXSize *)theSize;
  33. - highlight:(const NXRect *)cellFrame inView:controlView lit:(BOOL)flag;
  34.  
  35.  
  36. - write:(NXTypedStream *)stream;
  37. - read:(NXTypedStream *)stream;
  38.  
  39. - writeRichText:(NXStream *)stream forView:view;
  40. - readPrivate:(NXStream *)stream name:(char *)name;
  41. - readRichText:(NXStream *)stream forView:view;
  42.  
  43.  - (BOOL)trackMouse:(NXEvent *)theEvent 
  44.     inRect:(const NXRect *)cellFrame 
  45.     ofView:controlView;
  46. - drawInside: (const NXRect *)cellFrame inView:controlView;
  47. - uudecodeAttachment;
  48. - removeData;
  49.  
  50. @end
  51.